// import Layout from '@/layout'
// let tradeRouter = {
//   path: '/trade',
//   component: Layout,
//   name: 'trade',
//   // meta: {
//   //   title: '交易',
//   //   icon: 'trade'
//   // },
//   children: [ {
//       path: 'Quote',
//       component: () => import('@/views/carbonTrade/quotation/sell/sellQuote'),
//       name: 'Quote',
//       meta: { title: '供需详情', icon: '' }
//     },
//   {
//         path: 'Quote',
//         component: AppMain,
//         meta: { title: '供需详情', icon: '' },
//         children: [{
//           path: 'sellQuote',
//           component: () => import('@/views/carbonTrade/quotation/sell/sellQuote'),
//           name: 'sellQuote',
//           meta: { title: '供应行情', icon: '', activeMenu: '/assets/credit'}
//         },
//         ]
//       },  
//     ]
// }

// export default tradeRouter;
import Layout from '@/layout'
import AppMain from '@/layout/components/AppMain' // 引入主内容区组件

let tradeRouter = {
  path: '/trade',
  component: Layout,
  name: 'trade',
  children: [
    {
      path: 'Quote',
      component: AppMain,
      meta: { title: '供需详情', icon: '' },
      // 重定向：点击左侧"供需详情"菜单时默认跳转到采购行情
      redirect: '/trade/Quote/buyQuote',
      children: [
        {
          path: 'buyQuote',
          component: () => import('@/views/carbonTrade/quotation/buy/buyQuote'),
          name: 'buyQuote',
          meta: { 
            title: '采购行情', 
            icon: '',
            activeMenu: '/trade/Quote' // 高亮左侧"供需详情"菜单
          }
        },
        {
          path: 'sellQuote',
          component: () => import('@/views/carbonTrade/quotation/sell/sellQuote'),
          name: 'sellQuote',
          meta: { 
            title: '供应行情', 
            icon: '',
            activeMenu: '/trade/Quote' // 高亮左侧"供需详情"菜单
          }
        }
      ]
    },
     {
      path: 'offer',
      component: () => import('@/views/carbonTrade/offer/index.vue'),
      name: 'offer',
      meta: { title: '询报价管理', icon: '' }
    },
    {
      path: 'account',
      component: () => import('@/views/carbonTrade/account/exchangeManager.vue'),
      name: 'account',
      meta: { title: '交易所管理', icon: '' }
    },
    {
      path: 'accountManagement',
      component: () => import('@/views/maintain/user/tradeAccoutInfo.vue'),
      name: 'accountManagement',
      meta: { title: '交易账户管理', icon: '' }
    },
  ]
}

export default tradeRouter;
    